﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Get的接收请求
            string userName = Request.Params["n"];
            string passWord = Request.Params["p"];
            Response.Write($"<h1>Get:Params  ==>你的账号是{userName},你的密码是{passWord}<h1/><br/>");
          
            //Post的接收请求
            string userName2 = Request.Form["TextBox1"];
            string passWord2 = Request.Form["TextBox2"];
            Response.Write($"<h1>Post:Form  ==>你的账号是{userName2},你的密码是{passWord2}<h1/><br/>");



        }
    }
}